#pragma once
#include <QLabel>
#include <QMouseEvent>
class mylabel:public QLabel
{
 public:
  int x;
  int y;
  int w;
  int h;
  bool lp;
  int rects[12][4];
  class setrect *sr;
 public:
  mylabel(QWidget* parent =0);
  ~mylabel();
 public:
  void mouseMoveEvent(QMouseEvent* event);
  void mousePressEvent(QMouseEvent* event);
  void mouseReleaseEvent(QMouseEvent* event);
  void paintEvent(QPaintEvent *event);
};
